package com.moana.buyTicket.entity;

import java.io.Serializable;
import java.sql.Date;

import javax.jdo.annotations.Column;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(table="M_TRAN_FLOW")
public class TranFlow implements Serializable{

	public static class Id implements Serializable {

		public Id() {
		}

		public Id(java.lang.String str) {
			java.util.StringTokenizer token = new java.util.StringTokenizer(
					str, "::");
		}

		public java.lang.String toString() {
			java.lang.String str = "";
			return str;
		}

		public boolean equals(Object o) {
			if (this == o) {
				return true;
			}
			if (o == null) {
				return false;
			}
			if (o.getClass() != getClass()) {
				return false;
			}
			Id objToCompare = (Id) o;
			return true;
		}

	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@PrimaryKey
	@Column(name="MF_ID")
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Integer id;
	
	@Column(name="MF_PERSON_ID")
	private Integer personID;
	
	@Column(name="MF_TICKET_ID")
	private Integer ticketID;
	
	@Column(name="MF_SENDTIME")
	private Date sendTime;
	
	//抢购状态（0：成功；1：失败）
	@Column(name="MF_STATUS")
	private Integer status;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPersonID() {
		return personID;
	}

	public void setPersonID(Integer personID) {
		this.personID = personID;
	}

	public Integer getTicketID() {
		return ticketID;
	}

	public void setTicketID(Integer ticketID) {
		this.ticketID = ticketID;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "TranFlow [id=" + id + ", personID=" + personID + ", ticketID="
				+ ticketID + ", sendTime=" + sendTime + ", status=" + status
				+ "]";
	}
	
	
	
}
